jQuery(document).ready(function(){ AOS.init(); fullFirstScren(); jQuery('#office>div>div>div>div .wrapper-slider').slick({ infinite: false, autoplay: true, slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, autoplay: true, autoplaySpeed: 2000, }); jQuery('#recognition>div>div>div.wrapper-slider').slick({ infinite: false, autoplay: true, slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, autoplay: false, autoplaySpeed: 2000, adaptiveHeight: true }); jQuery('#content-reconhecimento>div>div>div .wrapper-list').slick({ infinite: false, autoplay: true, slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, autoplay: false, autoplaySpeed: 2000, appendDots: jQuery('#content-reconhecimento .wrapper-dots'), adaptiveHeight: true }); jQuery('header>div>div>div .wrapper-hamburguer .hamburguer').on('click', function(e){ e.preventDefault(); console.log('click'); jQuery(this).toggleClass('is-active'); jQuery('#expand-menu').toggleClass('active'); jQuery('#expand-menu>div>div>div .list-menu>ul>li.has-submenu .sub-menu').removeClass('expand'); jQuery('#expand-menu>div>div>div .list-menu>ul>li.has-submenu').removeClass('expand'); }); jQuery('#expand-menu>div>div>div .list-menu>ul>li.has-submenu>a').on('click', function(e){ e.preventDefault(); if(jQuery(this).parent().hasClass('expand')){ jQuery(this).parent().find('.sub-menu').removeClass('expand'); jQuery(this).parent().removeClass('expand'); }else{ jQuery('#expand-menu>div>div>div .list-menu>ul>li').removeClass('expand'); jQuery('#expand-menu>div>div>div .list-menu>ul>li .sub-menu').removeClass('expand'); jQuery(this).parent().find('.sub-menu').addClass('expand'); jQuery(this).parent().addClass('expand'); } }) }); jQuery(window).on('load', function(){ topMenu(); fullFirstScren(); scrollToSection(); try { animateScrollPage(); } catch (error) { console.log('Sem hash na url'); }; }); jQuery(window).on('scroll', function () { topMenu(); }); jQuery(window).resize(function(event) { fullFirstScren(); }); function fullFirstScren(){ var height = jQuery(window).height(); try { jQuery('.fullFirstScreen').height(height); } catch(e) { } } function topMenu() { if (jQuery(this).scrollTop() > 50) { jQuery('#StickyHeader').addClass('sticked'); } else { jQuery('#StickyHeader').removeClass('sticked'); }; }; function scrollToSection() { jQuery(function(event) { jQuery('.scrollTo a').on('click', function(event) { event.preventDefault(); jQuery.scrollTo(event.target.hash, 200, { offset: -78 }); }); }); } function animateScrollPage() { var hash = window.location.hash.substring(1); var tag = jQuery('#' + hash); // Animation if (hash) { jQuery('html, body').animate({ scrollTop: jQuery(tag).offset().top - 78 }, 250); } else { console.log('Sem nenhum âncora'); } }